cmake_minimum_required(VERSION 2.8.3)
project(demo)

# 清替换成您的交叉编译工具
#set(CMAKE_C_COMPILER "/opt/Fmart_Robot/4.9.3/bin/arm-cortexa9-linux-gnueabihf-gcc")
#set(CMAKE_CXX_COMPILER "/opt/Fmart_Robot/4.9.3/bin/arm-cortexa9-linux-gnueabihf-g++")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")

# 生成的可执行文件存放路径
set(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR})

# 头文件路径
include_directories(../headers)

# 库文件路径
link_directories("../deps_libs")
link_directories("..")
find_package(OpenCV REQUIRED)
# 源文件
set(DEMO_SOURCE_FILES
        main_demo.cpp
	AudioCore.cpp
        )

# 生成可执行文件
add_executable(demo ${DEMO_SOURCE_FILES})

# 依赖的第三方库
target_link_libraries(demo 
${OpenCV_LIBS}
fftw3 asound duersdk  curl ssl crypto z iconv charset dl pthread jsoncpp)

